﻿using OBS.Model;
using OBS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime;
using FreeAccessNetdisk.src.classes;

namespace FreeAccessNetdisk.src.classes//zyr到此一游
{
    class Program
    {
        static void Main(string[] args)
        {
            string bucketname = "mynewbucket";
            string localFileTest1 = "C:\\Users\\HuiXiutian\\Desktop\\test.docx";
            string localFileTest2 = "C:\\Users\\HuiXiutian\\Desktop\\test1.docx";
            string bucketNameTest1 = "test.docx";
            string bucketNameTest2 = "test1.docx";
            CloudClient cloudClient = new CloudClient(bucketname);
            CloudWatcher cloudWatcher = new CloudWatcher(cloudClient);
            //cloudClient.DeleteObject(bucketNameTest1);
            //cloudClient.OpenBucketLog();
            //cloudClient.PutObject(bucketNameTest1, localFileTest1);
            //cloudClient.PutObject(bucketNameTest2, localFileTest2);
            //cloudClient.GetObjects();    
            cloudWatcher.RefreshObjects("D:\\testspace\\");

        }
    }
}
